<div class="pagewrap">
  <div id="header" class="clearfix">
  	<?php if ($ht_type): ?>
			<div class="short-info-box">
      	<?php 
				if ($ht_type == 1) {
					print $ht_text;
				} else {
					if ($header_top) {
						print $header_top;
					}
				}
				?>
			</div>
     <?php endif; ?>
		<div class="wrap-main-header clearfix">
    	<?php if ($logo): ?>
      	<div id="logo">
		      <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home">
		        <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
		      </a>
	        <?php if ($site_slogan): ?>
	          <span class="slogan<?php if ($hide_site_slogan) { print ' element-invisible'; } ?>">
	            <?php print $site_slogan; ?>
	          </span>
	        <?php endif; ?>
        </div>
	    <?php endif; ?>
<!-- NEED WORK -->
			<?php if ($site_name): ?>
	      <div id="name-and-slogan"<?php if ($hide_site_name && $hide_site_slogan) { print ' class="element-invisible"'; } ?>>
	
	        <?php if ($site_name): ?>
	          <?php if ($title): ?>
	            <div id="site-name"<?php if ($hide_site_name) { print ' class="element-invisible"'; } ?>>
	              <strong>
	                <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
	              </strong>
	            </div>
	          <?php else: /* Use h1 when the content title is empty */ ?>
	            <h1 id="site-name"<?php if ($hide_site_name) { print ' class="element-invisible"'; } ?>>
	              <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
	            </h1>
	          <?php endif; ?>
	        <?php endif; ?>
	
	        <?php if ($site_slogan): ?>
	          <div id="site-slogan"<?php if ($hide_site_slogan) { print ' class="element-invisible"'; } ?>>
	            <?php print $site_slogan; ?>
	          </div>
	        <?php endif; ?>
                <!-- /#Codigo de Ruben--> 
                <?php if ($page['header_top']): ?>
                    <div id="header-top">
                      <?php print render($page['header_top']); ?>
                    </div> <!-- /#header_top -->
                <?php endif; ?>
	
	      </div> <!-- /#name-and-slogan -->
	    <?php endif; ?>
      
      <?php if ($main_menu || $page['superfish']): ?>
	      <div id="nav">
	      <?php if (!empty($page['superfish'])) { ?><?php print render($page['superfish']); ?><?php } ?>
	      <?php if (empty($page['superfish'])) { 
					print theme('links__system_main_menu', array(
	          'links' => $main_menu,
	          'attributes' => array(
	            'id' => 'main-menu-links',
	            'class' => array('links', 'clearfix'),
	          ),
	          'heading' => array(
	            'text' => t('Main menu'),
	            'level' => 'h2',
	            'class' => array('element-invisible'),
	          ),
					)); ?><?php } ?>
	      </div><!-- /#main-menu -->
	    <?php endif; ?>
		</div>
	</div><!-- /#header -->
  
  <?php if ($page['slider']): ?>
    <div id="slider">
      <?php print render($page['slider']); ?>
    </div> <!-- /#slider -->
  <?php endif; ?>
    
  <div id="main-content" class="<?php print $mainclass;?>clearfix">
    <?php if ($page['welcome']): ?>
	    <div id="welcome">
	      <?php print render($page['welcome']); ?>
	    </div> <!-- #welcome -->
	  <?php endif; ?>